package com.L1ngg;

import java.util.Scanner;
public class text03 {
	public static void main(String[] args) {
		double height;
		double weight;
		double BMI;
		
		Scanner reader = new Scanner(System.in);
		System.out.println("请输入你的身高和体重");
		System.out.print("请输入你的身高:(m) ");
		height = reader.nextDouble();
		System.out.print("请输入你的体重:(kg) ");
		weight = reader.nextDouble();
		
		BMI = weight/height/height;
		
		if(BMI>=18.5&&BMI<=24) 
			System.out.println("您的身体健康状况是正常的");
		if(BMI>24) 
			System.out.println("您的身体健康状况是超重的");
		if(BMI<18.5) 
			System.out.println("您的身体健康状况是消瘦的");

	}
	
}
